<?php

namespace App\Providers;

use App\Listeners\SendPodcastNotification;
use App\View\Composers\ProfileComposer;
use Illuminate\Support\Facades;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     */
    public function register(): void
    {
        //
    }

    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        Facades\View::composer('profile', ProfileComposer::class);

        Event::listen('App\Events\PodcastEvent', SendPodcastNotification::class);

        Passport::loadKeysFrom(__DIR__. '/../../storage');
    }
}
